package com.example.certificate.service;

import com.example.certificate.entity.WakeFile;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.certificate.utils.ResultEntity;
import org.springframework.core.io.ByteArrayResource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * <p>
 * 文件上传 服务类
 * </p>
 *
 * @author HAO
 * @since 2022-02-16 11:48:14
 */
public interface WakeFileService extends IService<WakeFile> {

    ResultEntity uploadFile(MultipartFile file) throws Exception;

    ResponseEntity<ByteArrayResource> download(String fileName) throws IOException;
}
